<html>
<head>
<style>
blockquote {
    margin: 0px;
    padding-left: 20px;
    border-left: 1px solid black;
}
</style>
</head>
<body>
<div id="description">This tests for a bug where copying a word in indented text and then pasting it into indented text would create an extraneous line break.  You should see "hello world" below, all in one indented paragraph.</div>
<div id="edit" contentEditable="true"><blockquote id="blockquote" class="webkit-indent-blockquote">hd</blockquote></div>

<script>
if (window.testRunner)
    testRunner.dumpAsText();
    
blockquote = document.getElementById("blockquote");
text = blockquote.firstChild;

window.getSelection().collapse(text, 1);
document.execCommand("InsertHTML", false, "ello worl");
if (window.testRunner)
    document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
</script>
</body>
</html>
